@model string
@using NITASA.ViewModels
@{
    CL_WidgetOption wOption = NITASA.Helpers.Functions.ParseJson<CL_WidgetOption>(Model);
    List<CL_Category> Categories = NITASA.Helpers.Functions.GetCategories(wOption.Count);
}
@if (Categories.Count() > 0)
{
<div class="sidebox">
    <h3 class="line">@wOption.Title</h3>    
        <ul class="cat-list">
            @foreach (var item in Categories)
            {
                <li><a href="@(string.IsNullOrEmpty(item.URL) ? "#" : "/Category/" + item.URL)">@item.Name</a></li>
            }
        </ul>
</div>
}